/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marifnst.jse71.creating_and_using_arrays;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 *
 * @author arifnasution
 */
public class SampleArrayList
{
    List<String> sampleList = Arrays.asList("list_element_1", "list_element_2", "list_element_3");
    ArrayList<String> sampleArrayList = new ArrayList<>();

    public ArrayList<String> getSampleArrayList()
    {
        return sampleArrayList;
    }

    public void setSampleArrayList( ArrayList<String> sampleArrayList )
    {
        this.sampleArrayList = sampleArrayList;
    }

    public List<String> getSampleList()
    {
        return sampleList;
    }

    public void setSampleList( List<String> sampleList )
    {
        this.sampleList = sampleList;
    }
    
    public void arrayList()
    {
        sampleArrayList.add( "arraylist_element_1" );
        sampleArrayList.add( "arraylist_element_2" );
        sampleArrayList.add( "arraylist_element_3" );
    }
}
